/*
 * Copyright 2021-2030 itbox.com All right reserved. This software is the confidential and proprietary information
 * of itbox.com ("Confidential Information"). You shall not disclose such Confidential Information and shall use it
 * only in accordance with the terms of the license agreement you entered into with itbox.com.
 */
package cn.itbox.example.application.service;


import cn.itbox.example.model.request.UserPageRequest;
import cn.itbox.example.model.response.UserResponse;
import cn.itbox.uap.db.model.PageResult;

import java.util.List;

/**
 * @BelongProject springboot-study
 * @BelongPackage cn.itbox.example.application.service
 * @Description TODO
 * @ClassName UserQueryService
 * @Author xingc
 * @Date 2023/11/26 23:09
 * @Version 1.0.0
 */
public interface UserQueryService {

    UserResponse byId(Long id);

    /**
     * 用户所有数据查询
     */
    List<UserResponse> list();

    /**
     * 用户分页数据查询
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageResult<UserResponse> pageList(Long pageIndex, Long pageSize);

    /**
     * 用户分页数据查询
     * @param request
     */
    PageResult<UserResponse> pageList(UserPageRequest request);
}
